package IOstreams;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class FileWriterTest {
    public static void main(String[] args) {
        try (FileWriter writer = new FileWriter(new File("ChapterLearning/a.txt"),true)) {
            writer.write("hello Word!");
            writer.append((char) 97).append("66");
            writer.flush();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
